package com.domain.movieComment;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * Embedded Document Pattern:
 * movie
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Document
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Movie implements Serializable {
    private static final long serialVersionUID = 42L;
    @Id
    private String id;
    private String name;
    private List<String> director;
    private List<String> actor;
    // 编剧
    private List<String> screenwriter;
    private List<Type> type;
    private String language;
    private LocalDate releasedDate;
    /**
     *  minute
     */
    private Integer playRange;
    private List<String> alias;
    private String assiocateWebSite;
    /**
     * 10 score
     */
    private Double averageScore;
    private List<SimpleComment> simpleComments;

}
